<?php
/**
 *
 * @author Strawberry🍓
 * @date 2021-05-21 4:08 下午
 *
 */

namespace app\common\model\tang;


use app\common\impl\Comm;
use app\common\model\CommonBaseModel;
use Jrk\Tree;
use think\facade\Db;

class InvoiceLog extends CommonBaseModel implements Comm
{
    protected $autoWriteTimestamp = 'int';
    protected $createTime = 'create_time';

    public function getAdminPageData($param = [], $order = 'id desc',$where=[])
    {
        $model = self::where($where);
        if (isset($param["title"]) && !empty($param['title'])){
            $where[] = ["title","=",$param["title"]];
        }
        $data = $model->order($order)->where($where)->page(PAGE)->limit(LIMIT)->select()->toArray();
        $count = count($data);
        return parent::ajaxResult($data,$count);

    }

    public function delById($id)
    {
        // TODO: Implement delById() method.
    }

    public function doAll($data)
    {
        // TODO: Implement doAll() method.
        return parent::doAllData($data);
    }
}